package com.kkb.shopcenter.server.mappers;


import com.kkb.shopcenter.common.pojo.ProductInfo;
import com.kkb.shopcenter.server.mapper.BaseMapper;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import tk.mybatis.mapper.provider.SpecialProvider;

public interface ProductInfoMapper extends BaseMapper<ProductInfo> {
    @Options(useGeneratedKeys = true, keyProperty = "id")
    @InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
    int insertUseGeneratedKeys(ProductInfo record);
}
